﻿using System.Collections.Generic;

namespace MvcStarterKit.Core.Interfaces
{
	public interface IRepository<T>
	{
		IList<T> GetAll();

		void Save(T entity);

		void DeleteAll();

		T Get(object id);

		void Delete(T entity);

		void Refresh(T entity);

		void Flush();
	}
}
